/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package B3D_Elements.B3D_Spatials;

import java.io.Serializable;
import java.util.Vector;

/**
 *
 * @author David
 */
public class B3D_Node extends B3D_Spatial implements Serializable
{

    private Vector<B3D_Spatial> children = new Vector<B3D_Spatial>();

    public B3D_Node(String _name, Vector<B3D_Spatial> _children)
    {
        setName(_name);
        if (_children != null)
        {
            children = _children;
        } else
        {
            children = new Vector<>();
        }
    }

    public Vector<B3D_Spatial> getChildren()
    {
        return children;
    }
}
